package com.zrwl.poscloud.xo.mapper;

import com.zrwl.poscloud.base.entity.DeptAdminR;
import com.zrwl.poscloud.base.superI.SuperMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 部门权限 Mapper类
 *
 * @author 刘思童 AutoGenerate
 * @date 2022-03-10
 */
public interface DeptAdminRMapper extends SuperMapper<DeptAdminR> {
    String getDeptRoleTreeByCompanyUidAndAdminUid(@Param("companyUid") String companyUid, @Param("adminUid") String AdminUid);
    String getDeptRoleTreeCodeByCompanyUidAndAdminUid(@Param("companyUid") String companyUid, @Param("adminUid") String AdminUid);
    List<String> getMyDeptCodeByUid(@Param("tree") String[] tree);
    List<String> getMyCompanyCodeByUid(@Param("tree") String[] tree);

    String getCompanySuperNameByCode(@Param("companyCode") String companyCode, @Param("level") int level);
}
